package com.hst.web.base.ui;

import java.sql.Timestamp;

import com.hst.core.meta.MetaData;
import com.hst.core.meta.annotation.EField;
import com.hst.core.meta.annotation.EInfo;
import com.hst.core.meta.annotation.FieldQuery;
import com.hst.web.base.entity.TCompanyEmployee;
import com.hst.web.base.proxy.PersonYearCheckProxy;

@EInfo(name = "person-year-check",title="员工通行证年审", entity = TCompanyEmployee.class,proxy = PersonYearCheckProxy.class)
public class PersonYearCheck extends MetaData{
	
	@EField(mapped=false, name = "dataId", title = "姓名", editor="select.employee-all", viewer="employeeName", form=0)
	private String dataId;
	
	@EField(name = "employeeCode", title = "人员编号", list = false, form = 0)
	private String employeeCode;
	
	@EField(mapped=false, title = "所属企业", form = 3, editor = "select.company-all", viewer = "dict.company-all", validate = "required", query=FieldQuery.EQ, role="9")
	private String companyCodeR9;

	@EField(mapped=false, title = "所属部门", form = 3, editor = "select.dept-all", viewer = "dict.dept-all")
	private String deptCode;

	@EField(mapped=false, title = "承包商", form = 3, editor = "select.contractor-info", viewer = "dict.contractor-info")
	private String contractorCode;
	
	@EField(mapped=false, title = "姓名", list = false, form = 3, validate = "required", query=FieldQuery.LIKE)
	private String fullName;
	
	@EField(title = "证件类型", form = 3, editor = "select.papersType",viewer = "dict.papersType", validate = "required")
	private String papersType;
	
	@EField(title = "证件号码", form = 3, viewer = "papersnumber", validate = "required")
	private String papersNumber;

	@EField(name = "issueNo", title = "通行证卡号", form = 3, validate = "max:20")
	private String issueNo;

	@EField(name = "beginExpirydate", list = false, title = "有效期开始时间", form = 0)
	private Timestamp beginExpirydate;

	@EField(name = "endExpirydate", title = "通行证有效期", form = 0, viewer="date")
	private Timestamp endExpirydate;
	
	@EField(mapped=false, name = "passOld", title = "旧版人员证号", form = 3, validate = "max:20")
	private String passOld;		
	
	@EField(mapped=false, name="cardType", title = "通行证类型", form = 0, viewer = "dict.cardType", editor="select.cardType", query=FieldQuery.EQ)
	private String cardType;
	
	@EField(mapped=false, list = false, name = "userName", title = "用户名", form = 0)
	private String userName;
	
	@EField(mapped=false, list = false, name = "telNumber", title = "手机号", form = 3)
	private String telNumber;

	@EField(mapped=false, list = false, name = "sex", title = "性别", form = 3, editor = "select.sex", viewer = "dict.sex")
	private String sex;

	@EField(mapped=false, list = false, name = "nationality", title = "国籍", form = 3)
	private String nationality;

	@EField(mapped=false, list = false, name = "nativePlace", title = "籍贯", form = 3)
	private String nativePlace;

	@EField(mapped=false, list = false, name = "redFlag", title = "红名单", form = 0)
	private String redFlag;

	@EField(mapped=false, list = false, name = "address", title = "居住地址", form = 3, validate = "required")
	private String address;

	@EField(mapped=false, list = false, name = "dynamicFace", title = "人脸照片", form = 3, editor = "uploadImg.dynamicFace", validate = "required")
	private String dynamicFace;	
	
	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCompanyCodeR9() {
		return companyCodeR9;
	}

	public void setCompanyCodeR9(String companyCodeR9) {
		this.companyCodeR9 = companyCodeR9;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getContractorCode() {
		return contractorCode;
	}

	public void setContractorCode(String contractorCode) {
		this.contractorCode = contractorCode;
	}

	public String getPapersNumber() {
		return papersNumber;
	}

	public void setPapersNumber(String papersNumber) {
		this.papersNumber = papersNumber;
	}

	public String getPapersType() {
		return papersType;
	}

	public void setPapersType(String papersType) {
		this.papersType = papersType;
	}

	public Timestamp getBeginExpirydate() {
		return beginExpirydate;
	}

	public void setBeginExpirydate(Timestamp beginExpirydate) {
		this.beginExpirydate = beginExpirydate;
	}

	public Timestamp getEndExpirydate() {
		return endExpirydate;
	}

	public void setEndExpirydate(Timestamp endExpirydate) {
		this.endExpirydate = endExpirydate;
	}

	public String getIssueNo() {
		return issueNo;
	}

	public void setIssueNo(String issueNo) {
		this.issueNo = issueNo;
	}

	public String getPassOld() {
		return passOld;
	}

	public void setPassOld(String passOld) {
		this.passOld = passOld;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTelNumber() {
		return telNumber;
	}

	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}

	public String getEmployeeCode() {
		return employeeCode;
	}

	public void setEmployeeCode(String employeeCode) {
		this.employeeCode = employeeCode;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public String getNativePlace() {
		return nativePlace;
	}

	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}

	public String getRedFlag() {
		return redFlag;
	}

	public void setRedFlag(String redFlag) {
		this.redFlag = redFlag;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDynamicFace() {
		return dynamicFace;
	}

	public void setDynamicFace(String dynamicFace) {
		this.dynamicFace = dynamicFace;
	}
	
}
